﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;

public static class FlexGraph
{
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl)]
    public static extern Int32 FG_createGraphControl(Int32 Hwnd, Int32 Left, Int32 Top, Int32 Width, Int32 Height, Int32 WindowLeft = 0, Int32 WindowTop = 0);
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl)]
    public static extern Int32 FG_removeGraphControl(Int32 ControlHandle);
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl)]
    public static extern Int32 FG_setDefaultZoom(Int32 ControlHandle);
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl)]
    public static extern Int32 FG_requestRedraw(Int32 ControlHandle);
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl, CharSet=CharSet.Unicode)]
    public static extern Int32 FG_addGraph(Int32 ControlHandle, String Title);
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl, CharSet=CharSet.Unicode)]
    public static extern Int32 FG_addPoint(Int32 ControlHandle, Int32 GraphHandle, Double X, Double Y);
    [DllImport("FlexGraph.dll", CallingConvention = CallingConvention.Cdecl)]
    public static extern Int32 FG_setEnableGrid(Int32 ControlHandle, Boolean Enable);

}

